<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>确认订单</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="full-screen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta name="format-detection" content="telephone=no"/>
    <meta name="format-detection" content="address=no">
    <script src="../../js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript">
        var docEl = document.documentElement;
        var clientWidth = docEl.clientWidth;
        docEl.style.fontSize = (clientWidth / 10) + 'px';
        $(document).ready(function () {
            (function (doc, win) {
                var docEl = doc.documentElement,
                        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                        recalc = function () {
                            var clientWidth = docEl.clientWidth;
                            docEl.style.fontSize = (clientWidth / 10) + 'px';
                        };

                if (!doc.addEventListener) return;
                win.addEventListener(resizeEvt, recalc, false);
                doc.addEventListener('DOMContentLoaded', recalc, false);
            })(document, window);
        });
    </script>
    <link rel="stylesheet" href="../../style/css/index.css"/>
</head>
<body>
<div style="background: #f7f7f7;width: 100%;height: 100%">
    <!--header-->
    <div class="header">
        <img class="back" onclick="history.go(-1);" src="../../style/images/sg_ic_back.png" alt=""/>

        <p class="orderName">去砍价</p>
    </div>
    <!-- content-->
    <div class="contactWay" id="kanjia">
        <!--<div style="width: 100%;margin-bottom: 10px;">-->
        <!--<img class="food_pic" src="" alt="" id="image"/>-->
        <!--<div class="food_name" style="width:7rem;">-->
        <!--<p id="title">sadfsd</p>-->
        <!--<span class="price" id="price">99</span>-->
        <!--<a href="details.html?id='+n.id+'">-->
        <!--<div class="fr psPhone" style=" margin-top: 0.5rem;">     -->
        <!--马上砍价-->
        <!--<img src="../../style/images/serch_del_into_4.png" alt=""/>-->
        <!--</div>-->
        <!--</a>-->
        <!--</div>-->
        <!--<div class="clear"></div>-->
        <!--</div>-->
        <!--<div style="width: 100%;margin-bottom: 10px;">-->
        <!--<img class="food_pic" src="" alt="" id="image"/>-->
        <!--<div class="food_name" style="width:7rem;">-->
        <!--<p id="title">sadfsd</p>-->
        <!--<span class="price" id="price">99</span>-->
        <!--<a href="details.html?id='+n.id+'">-->
        <!--<div class="fr psPhone" style=" margin-top: 0.5rem;">-->
        <!--马上砍价-->
        <!--<img src="../../style/images/serch_del_into_4.png" alt=""/>-->
        <!--</div>-->
        <!--</a>-->
        <!--</div>-->
        <!--<div class="clear"></div>-->
        <!--</div>-->
    </div>
</div>
<!--footer-->
<div class="footer" style="background:#ffcd00;text-align: center;font-size: 14px;line-height:1.46rem;">
    我的砍价清单
</div>
</body>
</html>
<script src="../../js/md5.js"></script>
<script src="../../js/md5_need.js"></script>
<script type="text/javascript" charset="utf-8">
    $(document).ready(function () {
        var indexJs = {
            getcomment: function () {
                var data = {
                    apiCode: '_bargain_goods_001',
                    userToken: "86b427f571d452f17272b356061a1db2"
                    // invest_id:'2'，
                };
                http(data, function (responed) {
                    console.log(responed);
                    var $info = responed.info;
                    var temp = '';
                    $.each($info, function (i, n) {
                        temp += '<div style="width: 100%;margin-bottom: 10px;">';
                        temp += '<img class="food_pic" src="' + n.img_path + '" alt="" id="image"/>';
                        temp += '<div class="food_name" style="width:7rem;">';
                        temp += '<p id="title">' + n.title + '</p>';
                        temp += '<span class="price" id="price">￥' + n.discount_price + '</span>';
                        temp += '<a href="details.html?id=' + n.id + '">';
                        temp += '<div class="fr psPhone" style=" margin-top: 0.5rem;">';
                        temp += '马上砍价';
                        temp += '<img src="../../style/images/serch_del_into_4.png" alt=""/>';
                        temp += '</div>';
                        temp += '</a>';
                        temp += '</div>';
                        temp += '<div class="clear"></div>';
                        temp += '</div>';
                    });
                    $("#kanjia").append(temp);
                })
            }
        };
        indexJs.getcomment();
    });
</script>
